import 'dart:convert';

Data dataFromJson(String str) => Data.fromJson(json.decode(str));

String dataToJson(Data data) => json.encode(data.toJson());

class Data {
  Data({
    required this.employeeId,
    required this.employeeName,
    required this.employeeNum,
  });

  Data.fromJson(dynamic json) {
    employeeId = json['employeeId'];
    employeeName = json['employeeName'];
    employeeNum = json['employeeNum'];
  }

  late final String employeeId;
  late final String employeeName;
  late final int employeeNum;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['employeeId'] = employeeId;
    map['employeeName'] = employeeName;
    map['employeeNum'] = employeeNum;
    return map;
  }
}
